package com.laolang.utils.configfileparse.util;

import java.io.IOException;
import java.util.Properties;


public class PropertiesFactory {

    public static Properties getProperties( String location ){
        Properties properties = new Properties();
        try {
            properties.load(PropertiesFactory.class.getClassLoader().getResourceAsStream(location));
        } catch (IOException e) {
            e.printStackTrace();
        }
        return properties;
    }
}
